package com.ruoyi.publish.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class JenkinsConfig {
    @Value("${jenkins.url:http://137.168.104.26:8080/}")
    private String jenkinsUrl;

    @Value("${jenkins.username:admin}")
    private String username;

    @Value("${jenkins.password:ce6a81b3a574445ba766ae6b78e8432a}")
    private String password;
    @Value("${ruoyi.profile:D:/ruoyi/uploadPath}")
    private String uploadPath;

    public JenkinsConfig() {
    }

    public JenkinsConfig(String jenkinsUrl, String username, String password, String uploadPath) {
        this.jenkinsUrl = jenkinsUrl;
        this.username = username;
        this.password = password;
        this.uploadPath = uploadPath;
    }

    public String getJenkinsUrl() {
        return jenkinsUrl;
    }

    public void setJenkinsUrl(String jenkinsUrl) {
        this.jenkinsUrl = jenkinsUrl;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUploadPath() {
        return uploadPath;
    }

    public void setUploadPath(String uploadPath) {
        this.uploadPath = uploadPath;
    }
}
